﻿<UserControl
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" x:Class="MacroprocesosWPF.Administrador.Administrador.ControUsuario.Proceso" 
             mc:Ignorable="d" 
             d:DesignHeight="386" d:DesignWidth="434" Loaded="UserControl_Loaded_1">
    <Grid Name="gridProceso">
        <Label Content="Proceso" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontSize="28" FontWeight="Thin"/>
        <Label Content="Nombre" HorizontalAlignment="Left" Margin="46,208,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="18"/>
        <Label Content="Acceso" HorizontalAlignment="Left" Margin="56,300,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="18"/>
        <TextBox x:Name="txtNombre" HorizontalAlignment="Left" Height="30" Margin="145,213,0,0" TextWrapping="NoWrap" VerticalAlignment="Top" Width="228" Text="{Binding Nombre}" FontSize="18"/>
        <Label Content="Número" HorizontalAlignment="Left" Margin="47,253,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="18"/>
        <xctk:IntegerUpDown x:Name="txtNumProceso" HorizontalAlignment="Left" Margin="145,258,0,0" VerticalAlignment="Top" Height="30" Width="67" Text="{Binding Path=NumeroProceso}" ValueChanged="numProceso_ValueChanged" Minimum="0" Maximum="9999" FontSize="18"/>
        <Label Content="Código" HorizontalAlignment="Left" Margin="54,167,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="18"/>
        <TextBox x:Name="txtCodigo" HorizontalAlignment="Left" Height="30" Margin="145,171,0,0" TextWrapping="NoWrap" VerticalAlignment="Top" Width="109" Text="{Binding Path=CodigoProceso}" IsReadOnly="True" FontSize="18"/>
        <TextBox x:Name="txtAcceso" HorizontalAlignment="Left" Height="30" Margin="145,305,0,0" TextWrapping="NoWrap" VerticalAlignment="Top" Width="197" Text="{Binding Path=RutaAcceso}" FontSize="18"/>
        <Button x:Name="btnRutaAcceso" Content="..." HorizontalAlignment="Left" Margin="347,308,0,0" VerticalAlignment="Top" Width="26" Click="Button_Click_1" Height="23"/>
        <Label Content="Pertenece a" HorizontalAlignment="Left" Margin="20,128,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="18"/>
        <ComboBox x:Name="cmbProcesoPadre" HorizontalAlignment="Left" Margin="145,132,0,0" VerticalAlignment="Top" SelectedValue="{Binding Path=IdPadreProceso, TargetNullValue=-1}" Height="30" Width="228" FontSize="18"/>
        <Label Content="Empresa" HorizontalAlignment="Left" Margin="44,84,0,0" VerticalAlignment="Top" FontWeight="Thin" FontSize="18"/>
        <ComboBox x:Name="cmbEmpresa" HorizontalAlignment="Left" Margin="145,89,0,0" VerticalAlignment="Top" SelectedValue="{Binding Path=IdEmpresa}" Height="30" Width="143" FontSize="18"/>
        <Button x:Name="btnNuevo"  HorizontalAlignment="Left" Margin="302,17,0,0" VerticalAlignment="Top" Height="40" Width="40" Click="btnNuevo_Click">
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Ellipse Stroke="#FF2F4160" StrokeThickness="4"/>
                        <Ellipse Margin="1" x:Name="highlightCircle" Fill="#FFF6F7F8" />
                        <ContentPresenter x:Name="content" HorizontalAlignment="Center" VerticalAlignment="Center" TextBlock.Foreground="#FF2F4160" />
                        <Image Name="Normal" Source="../../Imagenes/nuevo.png" Width="25" Height="25"/>
                        <Image Name="Pressed" Source="../../Imagenes/nuevo_pressed.png" Width="25" Height="25" Visibility="Hidden"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="highlightCircle" Property="Fill" Value="#FFF6F7F8" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="highlightCircle" Property="Fill" Value="#FF2F4160" />
                            <Setter TargetName="content" Property="TextBlock.Foreground" Value="#FFF6F7F8" />
                            <Setter TargetName="Normal" Property="Visibility" Value="Hidden" />
                            <Setter TargetName="Pressed" Property="Visibility" Value="Visible" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>
        <Button x:Name="btnGuardar" HorizontalAlignment="Left" Margin="358,17,0,0" VerticalAlignment="Top" Height="40" Width="40" Click="btnGuardar_Click">
            <Button.Template>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid>
                        <Ellipse Stroke="#FF2F4160" StrokeThickness="4"/>
                        <Ellipse Margin="1" x:Name="highlightCircle" Fill="#FFF6F7F8" />
                        <ContentPresenter x:Name="content" HorizontalAlignment="Center" VerticalAlignment="Center" TextBlock.Foreground="#FF2F4160" />
                        <Image Name="Normal" Source="../../Imagenes/save.png" Width="25" Height="25"/>
                        <Image Name="Pressed" Source="../../Imagenes/save_pressed.png" Width="25" Height="25" Visibility="Hidden"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter TargetName="highlightCircle" Property="Fill" Value="#FFF6F7F8" />
                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Setter TargetName="highlightCircle" Property="Fill" Value="#FF2F4160" />
                            <Setter TargetName="content" Property="TextBlock.Foreground" Value="#FFF6F7F8" />
                            <Setter TargetName="Normal" Property="Visibility" Value="Hidden" />
                            <Setter TargetName="Pressed" Property="Visibility" Value="Visible" />
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Button.Template>
        </Button>
    </Grid>
</UserControl>
